<?php

@session_start();
if (isset($_SESSION['user']) && isset($_SESSION['pass'])) {
//        unset ($_SESSION['user'],$_SESSION['pass']);
//        $_SESSION['user']="";
    session_destroy();
    header("location:login.php");
} else {
    header("location:login.php");
}
?>